package textapp.connector.model;

public class UserModel {
	
	private int id;
	
	private String name;
	
	private String identity;
	
	private int status; // 0 = normal, 1 = not registered user
	
	private String pushIdentity;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public String getPushIdentity() {
		return pushIdentity;
	}

	public void setPushIdentity(String pushIdentity) {
		this.pushIdentity = pushIdentity;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof UserModel)) {
			return false;
		}
		UserModel other = (UserModel) obj;
		if (other.getId() == 0) {
			return false;
		}
		return (this.id == other.getId());
		
	}
}
